package com.fa.ojcodesandbox.unsafe;

/**
 * ClassName: WriteFileError
 * Package: com.fa.ojcodesandbox.unsafe
 * Description: 向服务器写文件（植入危险程序）
 *
 * @Author:
 * @Create: 2024/4/27 - 20:21
 * @Version: v1.0
 */
public class WriteFileError {

    public static void main(String[] args) throws Exception {
        String path = "C:\\Windows\\System32\\cmd.exe";
        Runtime.getRuntime().exec(path);
    }
}
